﻿using System.Windows;

namespace FileSecurityManager.UI
{
    /// <summary>
    /// Interaction logic for SplashScreen.xaml
    /// </summary>
    public partial class Splash
    {
        #region constructor

        /// <summary>
        /// Initializes a new instance of the <see cref="Splash"/> class.
        /// </summary>
        public Splash()
        {
            InitializeComponent();
        }
        #endregion

        #region methods

        /// <summary>
        /// Shows the login.
        /// </summary>
        public bool ShowLoginScreen()
        {
            var dialog = new Login { Owner = this };
            dialog.ShowDialog();
            if (dialog.DialogResult == true)
            {
                return true;
            }
            
            return false;
        }
        #endregion
    }
}
